/*
 * @Author: your name
 * @Date: 2020-09-07 10:05:07
 * @LastEditTime: 2020-09-07 17:16:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tinkjsDemo\antd-vue-pro\tests\demo\jstest2.js
 */

// const { resolve } = require("core-js/fn/promise");

// setTimeout(function(){
//     console.log(1);
//     console.log('------------------------------');
// },0)

// new Promise(resolve=>{
//     console.log(2);
//     for (let index = 0; index < 1000; index++) {
//         index ==999 &&resolve();
//     }
//     console.log(3);
// }).then(function(){
//     console.log(4);
// })

// console.log(5);



// var messages = ['1', '2', '3', '4']; 
//  for (var i = 0; i < messages.length; i ++) {
//  setTimeout(function(){
//      console.log(i);
//  console.log(messages[i]); }, i*1000); 
//  }


// var dd = new Set([2, 1, 3]);
// function ff(){
//     var a = [].slice.apply(arguments); 
// console.log(typeof a);
// console.log( a instanceof Array);
// console.log(a)
// }
// ff(dd);

// (function fun(){
// 	var arr = [Array.prototype].slice.apply(arguments);
// 	var arr2 = [].slice.apply(arguments);
// 	console.log(arr);		//[18,23]
// 	console.log(arr.reverse());		//[23,18]
// 	console.log(arr2);		//[18,23]
// 	console.log(arr2.reverse());		//[23,18]
// })(dd);

// console.log('----------- Array.from');
// const f = Array.from(dd)
// console.log( f instanceof Array);
// console.log(f )


var a= b=/678/;
console.log(typeof a);
console.log(a.test('6789'));
console.log(b);
console.log(a == b);
console.log(a === b);

var c=d=[];
console.log(c == d);
console.log(c === d);